package com.vt.admin.api.feign;

import com.vt.admin.api.entity.SysLog;
import com.vt.admin.api.entity.SysLoginLog;
import com.vt.common.core.constant.ServiceNameConstant;
import com.vt.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = ServiceNameConstant.UMPS_SERVICE)
public interface RemoteLogService {
    /**
     * 保存日志
     *
     * @param sysLog 日志实体
     * @return succes、false
     */
    @PostMapping("/log")
    R<Boolean> saveLog(@RequestBody SysLog sysLog);

    /**
     * 保存登录日志
     *
     * @param sysLog
     * @return
     */
    @PostMapping("/log/login_log")
    R<Boolean> saveLoginLog(SysLoginLog sysLog);
}
